//
//  CJBaseViewController.h
//  DatangLife
//
//  Created by 娜 on 2018/4/19.
//  Copyright © 2018年 DatangLife. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CJBaseViewController : UIViewController
@property (nonatomic, assign) BOOL closeAnimating;
@property (nonatomic, assign) BOOL isSuccessNet;//网络请求成功

@property (nonatomic, assign) NSInteger page;
/**
 数据源数量
 */
@property (nonatomic, strong) NSMutableArray *dataArray;




- (void)pop;

- (void)popToRootVc;

- (void)popToVc:(UIViewController *)vc;

- (void)dismiss;

- (void)dismissWithCompletion:(void (^)(void))completion;

- (void)presentVc:(UIViewController *)vc;

- (void)presentVc:(UIViewController *)vc completion:(void (^)(void))completion;

- (void)pushVc:(UIViewController *)vc;

- (void)removeChildVc:(UIViewController *)childVc;

- (void)addChildVc:(UIViewController *)childVc;

/**
 加载中
 */
- (void)showLoadingAnimation;

/**
 停止加载
 */
- (void)hideLoadingAnimation;

/**
 请求数据，交给子类去实现
 */
- (void)loadData;

@property (nonatomic, assign) BOOL isNetworkReachable;

@end
